﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>店铺类目列表页  - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<link href="${sysResRoot}/front.css" rel="stylesheet" type="text/css"/>
<link href="${base}/res/common/css/jquery.ui.css" rel="stylesheet" type="text/css"/>
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		alert("请选择要删除的数据");
		return;
	}
	if(!confirm("确认删除")) {
		return;
	}
	var f = document.getElementById('tableForm');
	f.action="delete.jspx";
	f.submit();
}
</script>
</head>
<body>
[#include "../include/店铺页头顶栏.html"/]
<div class="w1168">
	[#include "店铺中心_导航.html"/]
    <div class="user_right">
		<div class="user_title2">店铺类目列表<a href="add.jspx" class="fr" style="margin-right:5px;">添加类目</a></div>
        <div class="clear10"></div>       
        <form id="tableForm" method="post">
        <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#cccccc">
        <tr>
        <td width="40" height="30" align="center" bgcolor="#f0f0f0"><input type='checkbox' onclick='Pn.checkbox("ids",this.checked)'/></td>
        <td width="200" align="center" bgcolor="#f0f0f0">父类目</td>
        <td align="center" bgcolor="#f0f0f0">分类名称</td>
        <td width="120" align="center" bgcolor="#f0f0f0">排序</td>
        <td width="120" align="center" bgcolor="#f0f0f0">操作</td>
        </tr>
        </table>
        
        [@storeCategory_list storeId=store.id parentId=""]
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
        [#if tag_list?size gt 0]
        [#list tag_list as storeCategory]
        <tr>
        <td width="40" height="50"  align="center"><input type="checkbox" name="ids" value="${storeCategory.id}"/></td>
        <td width="200" align="center">[#if storeCategory.parent??]${storeCategory.parent.name!无}[/#if]</td>
        <td align="center">${storeCategory.name!}</td>
        <td width="120" align="center">${storeCategory.priority!10}</td>
        <td width="120" align="center">
        <a href="edit.jspx?id=${storeCategory.id}" target="_blank">修改</a>|
        <a href="delete.jspx?ids=${storeCategory.id}" target="_blank">删除</a>
        </td>
        </tr>
        <tr>
        <td height="1" colspan="5" bgcolor="#e7e7e7"></td>
        </tr>
        <tr>
        <td colspan="5">
        [@storeCategory_list storeId=store.id parentId=storeCategory.id]
        <table  cellspacing="0" cellpadding="0" width="100%" border="0">
        [#if tag_list?size gt 0]
        [#list tag_list as storeCategory]
        <tr>
        <td width="40" height="50"  align="center">
        <input type="checkbox" name="ids" value="${storeCategory.id}"/></td>
        <td width="200" align="center">[#if storeCategory.parent??]${storeCategory.parent.name!}[#else]顶级类目[/#if]</td>
        <td align="center">${storeCategory.name!}</td>
        <td width="120" align="center">${storeCategory.priority!10}</td>
        <td width="120" align="center">
        <a href="edit.jspx?id=${storeCategory.id}" target="_blank">修改</a>|
        <a href="delete.jspx?ids=${storeCategory.id}" target="_blank">删除</a>
        </td>
        </tr>
        <tr>
        <td height="1" colspan="5" bgcolor="#e7e7e7"></td>
        </tr>
        [/#list]
        [/#if]
        </table>
        
        [/@storeCategory_list]
        </td>
        </tr>
        [/#list]
        [#else]
        <div class="zwsj">暂无数据</div>
        [/#if]
        </table>
        [/@storeCategory_list]
        <input type="button" value="删除" onclick="optDelete();" class="menu_ok"/>
        </form>
    <div class="clear20"></div>
</div>
[#include "../include/页脚信息栏.html"/]
</body>
</html>